﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace JurassicIslandWeb
{
    public partial class Login : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            Page.Title = Master.Page.Header.Title + " - Login";
        }

        protected void LoginJugador_Authenticate(object sender, AuthenticateEventArgs e)
        {
            if (LoginJugador.UserName == "jugador" && LoginJugador.Password == "jugador")
            {
                e.Authenticated = true;
            }
            else if (LoginJugador.UserName == "jugador2" && LoginJugador.Password == "jugador2")
            {
                e.Authenticated = true;
            }
            else
            {
                e.Authenticated = false;
            }
        }
    }
}